module.exports = {
  __swagger__: {
    name: 'company',
    description: 'company相关接口'
  },
  getName: {
    name: '获取企业名称',
    desc: '获取企业名称',
    method: 'get',
    controller: 'company.getName',
    param: {
      key: {
        name: '秘钥',
        desc: '秘钥',
        type: 'string'
      },
      getType: {
        name: '获取渠道',
        desc: '获取渠道',
        type: 'enum',
        size: ['baidu', 'ali'],
        req: 1
      },
      name: {
        name: '要查询的字符串',
        desc: '查询的字符串',
        type: 'string',
        req: 1,
        size: [4, 30]
      }
    },
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  },
  getCompanyInfo: {//需要taobao登陆
    name: '获取企业信息',
    desc: '获取企业信息',
    method: 'get',
    controller: 'company.getInfo',
    param: {
      key: {
        name: '秘钥',
        desc: '秘钥',
        type: 'string'
      },
      name: {
        name: '要查询的公司详情',
        desc: '要查询的公司详情',
        type: 'string',
        req: 1,
        size: [4, 100]
      }
    },
    err_code: {
      200: {
        temp: {
          data: {},
          code: 0,
          msg: 'ok',
          t: 1559204889719
        }
      }
    },
    test: {},
    token: false,
    needSign: false,
    front: true
  }
}
